#ifndef _ENTITY_PLAYER_SPAWN_H_
#define _ENTITY_PLAYER_SPAWN_H_

#ifdef _WIN32
#pragma once
#endif

#include "engine/entity.h"
#include "engine/static_entity.h"
#include "game/player.h"
#include "game/map.h"
#include "entitycontainer.h"

#include "bomb.h"

class CPlayerSpawn : public CStaticEntity
{
public:
    CPlayerSpawn(float nX, float nY, float nZ, ENTITY_ID entId);
    virtual void onCreate(CMap *pMap);

    CPlayer *getPlayerToSpawn() const;
    ENTITY_ID getIdToSpawn() const;

    virtual void reset();

private:
    ENTITY_ID m_nPlayerId;
    CPlayer *m_pPlayer;
};

#endif